package com.xbts.system.domain.metadata;


import com.xbts.common.config.XbtsConfig;

public class IDPMetadata {

    public static final String IDPFILEPATH = XbtsConfig.getIdpMetadataFilePath();
    public static final String KEYSTOREPATH = XbtsConfig.getKeystorePath();
    public static final String KEYSTOREPASS = XbtsConfig.getKeystorePass();
    public static final String ALIASNAME = XbtsConfig.getAliasName();

    private static MetadataBean idpMetadata;

    private IDPMetadata() {

    }

    public static MetadataBean getInstance() {
        if (idpMetadata == null) {
            idpMetadata = new MetadataBean(getIdpfilepath());
        }
        return idpMetadata;
    }
    public static String getIdpfilepath() {
        return XbtsConfig.getIdpMetadataFilePath();
    }
    public static String getKeystorepath() {
        return XbtsConfig.getKeystorePath();
    }
    public static String getKeystorepass() {
        return XbtsConfig.getKeystorePass();
    }
    public static String getAliasname() {
        return XbtsConfig.getAliasName();
    }
}
